Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Classtree generation code #444

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from
Open

Classtree generation code #444

wants to merge 3 commits into from

Conversation

situx
Copy link

@situx situx commented Dec 29, 2020

Referring to issue #418 I have created source code which extracts 5 different trees from the given ontology model:

  • Class tree
  • ObjectProperty tree
  • DatatypeProperty tree
  • AnnotationProperty tree
  • Individual tree

The trees are saved in a JS file recources/classtree.js which also includes a function createClassTreeFromJSON(json).
This method can be called in the template e.g. $('#element').jstree(createClassTreeFromJSON(treedata["classes"]) to create a classtree, $('#element').jstree(createClassTreeFromJSON(treedata["objprop"]) for an object property tree etc.
This is shown on my homepage: https://situx.github.io/widoco_classtree/index2.html

This solves the tree generation part of issue #418 but not how to integrate it into the template. This I would like to leave for others to implement as I currently do not know the best approach for it.

@dgarijo
Copy link
Owner

dgarijo commented Dec 29, 2020

Thanks @situx!
This is quite valuable, I need to see how to properly integrate it. I think a lateral sidebar is perhaps the most useful way.

@seralf
Copy link
Contributor

seralf commented Nov 25, 2021

This is useful, indeed! I'd suggest being able to show/hide the sidebar, in order to improve the UX a bit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants